﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ds.DataBase.Model
{
    [Table("JiXiaos")]
    public class JiXiao : MoBan
    {

        public 绩效类型 jxtype { set; get; }
        public string cjrname { set; get; }
        public enum 绩效类型
        {
            职工绩效 = 1,
            班主任 = 2,
            教师 = 3
        }
        public virtual ICollection<JiXiaoNeiRong> JiXiaoNeiRongs { set; get; }
    }
    [Table("JiXiaoNeiRongs")]
    public class JiXiaoNeiRong : NeiRong
    {
        public int jxsx { set; get; }
        public decimal jxfz { set; get; }
        public string jxhtml { set; get; }

        public virtual JiXiao JiXiao{set;get;}
        public  virtual  ICollection<JiXiaoSon> JiXiaoSons { set; get; }
    }
    public class JiXiaoSon
    {
        [Key, DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int jxsid { set; get; }
        public int jxssx { set; get; }
        public string jxsnr { set; get; }
        public decimal jxfz { set; get; }
        public string jxshtml { set; get; }
        public virtual  JiXiaoNeiRong JiXiaoNeiRong { set; get; }
    }
}
